﻿@model IEnumerable<LayuiMvcUtil.Result.ComboboxResult>

<div class="fly-panel fly-column">
    <div class="layui-container">
        <ul class="layui-clear">
            <li>
                <a href="/">首页</a>
            </li>
            @foreach(var postType in Model)
            {
                <li class="@(ViewBag.PostType==postType.Value?"layui-this":"")">
                    <a href="@Url.Action("Index","Home",new {postType=postType.Value })">@postType.Text</a>
                </li>
            }
            @if (ViewBag.IsLogin)
            {
                <li class="layui-show-md-inline-block"><a href="@Url.Action("UserPublish","User")">我发表的帖</a></li>
                <li class="layui-show-md-inline-block"><a href="@Url.Action("UserCollection","User")">我收藏的贴</a></li>
            }
        </ul>

        <div class="fly-column-right">
            <a href="@Url.Action("Publish")" class="layui-btn">发表新帖</a>
        </div>
    </div>
</div>

